package com.yiren.backstage.config.bean.device;

import com.yiren.backstage.config.bean.BaseParamConfigBean;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by WANGRONGXIANG
 * on 2022/5/18
 * Describe 设备学习数据配置参数
 */
public class DeviceStudyConfigBean extends BaseParamConfigBean {

    private Map<Integer, float[]> cdbMap;  //传动比值
    private String gyroGearStudy;          //角度档位学习参数
    private String xyMechanicalGearStudy;  //XY机械档位学习
    private String xyGearReset;            //XY机械挡位重置值
    private String jxConfig;               //接线配置

    public static DeviceStudyConfigBean getDefaultDeviceStudyConfig() {
        DeviceStudyConfigBean studyDataConfig = new DeviceStudyConfigBean();
        //传动比
        Map<Integer, float[]> cbdMap = new HashMap<>();
        cbdMap.put(1, new float[]{111, 200});
        cbdMap.put(2, new float[]{60, 110});
        cbdMap.put(3, new float[]{39, 59});
        cbdMap.put(4, new float[]{29, 38});
        cbdMap.put(5, new float[]{24, 28});
        studyDataConfig.setCdbMap(cbdMap);
        studyDataConfig.setGyroGearStudy("");
        studyDataConfig.setXyMechanicalGearStudy("");
        studyDataConfig.setXyGearReset("");
        studyDataConfig.setJxConfig("");
        return studyDataConfig;
    }

    public Map<Integer, float[]> getCdbMap() {
        return cdbMap;
    }

    public void setCdbMap(Map<Integer, float[]> cdbMap) {
        this.cdbMap = cdbMap;
    }

    public String getGyroGearStudy() {
        return gyroGearStudy;
    }

    public void setGyroGearStudy(String gyroGearStudy) {
        this.gyroGearStudy = gyroGearStudy;
    }

    public String getXyMechanicalGearStudy() {
        return xyMechanicalGearStudy;
    }

    public void setXyMechanicalGearStudy(String xyMechanicalGearStudy) {
        this.xyMechanicalGearStudy = xyMechanicalGearStudy;
    }

    public String getXyGearReset() {
        return xyGearReset;
    }

    public void setXyGearReset(String xyGearReset) {
        this.xyGearReset = xyGearReset;
    }

    public String getJxConfig() {
        return jxConfig;
    }

    public void setJxConfig(String jxConfig) {
        this.jxConfig = jxConfig;
    }
}
